package com.foton.limiter.construstlimiter.entity;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @Author RenPu
 * @Date 2023/3/20 15:44
 * @Version 1.0
 * @Description:
 **/

@Data
public class ResponseResult {

    private Integer code;

    private String msg;

    public ResponseResult() {
        System.out.println("构造方法被执行。。。。。。。");
    }

    @PostConstruct
    public void init(){
        System.out.println("注解PostConstruct标注的方法，被执行。。。。。。。");
    }



    public ResponseResult(Integer code, String returnMsg) {
        this.code=code;
        this.msg=returnMsg;
    }


}
